package com.wdciti.sccp.iot.springvertx.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;


/**
 * 这个config 也暂时不给了，简单实现。
 *
 * @author JINWEN
 */

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component
@Documented
public @interface VerticleBean {

    @AliasFor(annotation = Component.class) String value() default "";

    //    Class<EndpointConfig> config();
    boolean isWorker() default true;

    String workerPoolName() default "";

    int workerPoolSize() default 20;

    boolean useHA() default false;

    int instances() default 1;
}
